import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_demo/widget/cards.dart';
import 'package:flutter_demo/widget/screen_load.dart';
import 'package:flutter_demo/widget/tiny_widgets.dart';

class QueryApplyStatusScreen extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _QueryApplyStatusScreenState();
}

class _QueryApplyStatusScreenState
    extends State<QueryApplyStatusScreen> with ScreenLoadMixin {

  Map<String, String> data = {
    '申报日期' : '2022年5月12日 19:10',
    '申报单位' : '北京洛凯云享科技有限公司',
    '申报名称' : '安卓开发工程师',
    '审核状态' : '未审批',
  };

  @override
  void initState() {
    super.initState();
    Timer(const Duration(milliseconds: 1000), () => loadFinish());
  }

  @override
  void loadFinish() {
    // TODO: implement loadFinish
    super.loadFinish();
  }

  @override
  Widget buildChild(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('查询申报状态'),
      ),
      body: ListView(
        shrinkWrap: true,
        padding: EdgeInsets.all(32),
        children: [
          DataCard(
            height: 250,
            params: data,
          ),
        ],
      ),
    );
  }
}